package com.blog.mapper;

import com.blog.model.DiscussInfo;
import com.blog.model.EmailModel;
import com.blog.pojo.Discuss;

import java.util.List;

/**
 *
 * @author JiaFuJun
 * @version v1.0
 * @date 2020-06-08
 */
public interface DiscussMapper {

    int insert(Discuss record);

    int update(Discuss record);

    int del(Object id);

    List<Discuss> selectByArticleId(Object id);

    List<Discuss> selectByRecord(Discuss record);

    List<DiscussInfo> getByArticleId(Integer articleId);

    void delByArtId(Object id);

    EmailModel getById(Integer id);
}